package com.buwstudio;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

/**
 * 
 * Description:
 * 添加Spring OAuth中的@EnableResourceServer注解，
 * 这个注解默认会保护服务器上除“/oauth/”端点之外的所有其他端点
 * @author 卜 伟<br>
 * Last Modified: <br>
 * 2017年5月26日 上午11:06:42
 */
@EnableWebSecurity
@EnableDiscoveryClient
@SpringBootApplication
public class UaaServiceApplication {

	public static void main(String[] args) {
		SpringApplication.run(UaaServiceApplication.class, args);
	}

}
